package ai.zixing.strategy;

import org.springframework.stereotype.Component;

@Component
public class PlanBStrategy extends APlanStrategy {

    /**
     * 策略名称
     */
    private static final String STRATEGY_NAME = "PLAN_B";

    @Override
    public String getStrategyName() {
        return STRATEGY_NAME;
    }

    @Override
    public void createPlan() {
        System.out.println("create plan " + STRATEGY_NAME);
    }

    @Override
    public String queryPlan() {
        return "result: " + STRATEGY_NAME;
    }

    @Override
    public String handlerPlan() {
        return "handler plan..." + STRATEGY_NAME;
    }
}
